Use the correct index, reported by Tommi Komulainen.
authorMatthias Clasen <mclasen@redhat.com>
Tue, 24 Aug 2004 19:53:58 +0000 (19:53 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 24 Aug 2004 19:53:58 +0000 (19:53 +0000)
2004-08-24  Matthias Clasen  <mclasen@redhat.com>

* gdk-pixbuf-loader.c (gdk_pixbuf_loader_new_with_mime_type): Use
the correct index, reported by Tommi Komulainen.

gdk-pixbuf/ChangeLog
gdk-pixbuf/gdk-pixbuf-loader.c

index 81b029153a6cb32ca60a625e2e8ab3b9b0550a12..8c5247186a5e9b5ea4dec2f4ba19f5d621ce755d 100644 (file)
@@ -1,5 +1,8 @@
 2004-08-24  Matthias Clasen  <mclasen@redhat.com>
 
+       * gdk-pixbuf-loader.c (gdk_pixbuf_loader_new_with_mime_type): Use
+       the correct index, reported by Tommi Komulainen.
+
        * gdk-pixdata.c (gdk_pixdata_from_pixbuf): Work around bugs in
        the runlength encoder by forcing rowstride * height to be 
        divisible by bpp.  (#150882)
index e25c2db518f3e8ca4452f08cbe5bb46cf03dea71..f6755848d599dad5a26dc265fa9f6b3886ec1854 100644 (file)
@@ -600,7 +600,7 @@ gdk_pixbuf_loader_new_with_mime_type (const char *mime_type,
                 mimes = info->mime_types;
                 
                 for (j = 0; mimes[j] != NULL; j++)
-                        if (g_ascii_strcasecmp (mimes[i], mime_type)) {
+                        if (g_ascii_strcasecmp (mimes[j], mime_type)) {
                                 image_type = info->name;
                                 break;
                         }